﻿using DAO.DAO;
using DAO.PO;
using System;
using System.Linq;

namespace EFDemo {
    class Program {
        static void Main(string[] args) {

            UserDAO dao = new UserDAO();

            dao.Create(new User() {
                Name = Guid.NewGuid().ToString(),
                Birthday = DateTime.Now,
            });

            var model = dao.FindAll().FirstOrDefault();

            Console.WriteLine(model.Name);
        }
    }
}
